OverageRequest

struct OverageRequest
extension OverageRequest : Decodable, Encodable, Equatable

Encapsulates information about overages in a consumption license. Can be passed to LicenseService.syncConsumption if you want to include overage info in the request.

  • Indicates whether it’s allowed to exceed consumption for this license. Meaningful only for consumption-based licenses.

    Declaration

    Swift

    var isConsumptionOverageAllowed: Bool
  • Extra amount of consumption that allows going over maxConsumption. Meaningful only for consumption-based licenses.

    Declaration

    Swift

    var maxConsumptionOverage: Int
  • Default initializer (equivalent to parameterless constructor in C#)

    Declaration

    Swift

    init()
  • Parameterized initializer

    Declaration

    Swift

    init(isOverageAllowed: Bool, maxOverage: Int)

    Parameters

    isOverageAllowed

    Whether exceeding consumption is allowed.

    maxOverage

    Extra consumption allowed over the limit.

  • Creates a new instance by decoding from the given decoder.

    This initializer throws an error if reading from the decoder fails, or if the data read is corrupted or otherwise invalid.

    Declaration

    Swift

    init(from decoder: any Decoder) throws